package de.fhffm.scs.simulator.hardware;

import de.fhffm.scs.simulator.body.Body;

/**
 * This class represents a simulated hardware Injections device and serves as a bridge
 * between drivers and a body body. 
 * 
 * @author claudio, tatiana
 * 
 */
public class Injector2000Impl implements InjectorHardware {

	private Body body;

	public Injector2000Impl(Body h) {
		if (h == null) {
			throw new IllegalArgumentException();
		}
		this.body = h;
	}

	@Override
	public void injectInsulin(int units) {
		body.injectInsulin(units);
	}

	@Override
	public Body getHuman() {
		return body;
	}

}
